import java.util.Arrays;

public class Solution01 {
    public static void main(String[] args) {
        //一个二维数组
        int[][] intervals = {{2, 6}, {1, 3}, {8, 10}, {15, 18}};
        Arrays.sort(intervals,(v1,v2) -> {
            return v1[0] - v2[0];
        });
        System.out.println(Arrays.deepToString(intervals));
    }
}
